package com.ccb.sc.common.util.oss;

import com.aliyun.oss.OSSClient;

/**
 * 阿里云存储端初始化工厂
 * @author ken
 * @version 1.0
 * @date 2020-09-22
 */
public class OssClientFactory {

    private OssClientFactory(){

    }

    public static final String ENDPOINT = "http://oss-cn-shenzhen.aliyuncs.com";

    public static OSSClient getOSSClient(String endpoint, String accessKeyId, String accessKeySecret){
            return new OSSClient(endpoint,accessKeyId,accessKeySecret);
    }

    public static OSSClient getOSSClient(String accessKeyId, String accessKeySecret){
        return getOSSClient(ENDPOINT,accessKeyId,accessKeySecret);
    }
}
